package com.lanou.mapper;

import com.lanou.bean.Account;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccountMapper {

    List<Account> getAllAccountInfo ();

    void addAccount(Account account);

    void deleteAccount (@Param("id") int id);

    void updateAccount(@Param("id") int id , @Param("status") String status);

    Account selectAccountById(@Param("id") int id);

    void updateAccountByid(@Param("id") int id,@Param("realname")String name,
                           @Param("tele") String tele,@Param("cardno")String cardno,
                           @Param("email")String email,@Param("addr") String addr,
                           @Param("zipcode") String zipcode,@Param("qq") String qq,
                           @Param("gender") String gender,@Param("occupation")String occupation );
    Account selectByCardId(@Param("cardno") String cardno);

    void updatePauseDate(@Param("pause")String pause,@Param("accountId") int id);
    void updateDelPauseDate(@Param("pause") String pause,@Param("accountId") int id);

    void updateCloseDate(@Param("close")String close,@Param("accountId") int id);

    List<Account> accountSearch(@Param("idcardNo") String idcardNo , @Param("realName") String realName
                                ,@Param("loginName") String loginName,@Param("status") int status);


}